package com.hutu.erp.catalog.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.model.BaseModel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * Description: com.hutu.erp.catalog.model
 * User: hushibo
 * Date: 2021-05-26 15:15
 * Time: 15:15
 * Version: 1.0
 */
public class PictureModel extends BaseModel {


    /** 图片Id */
    private Long pictureId;

    /** 媒体类型 */
    @Excel(name = "媒体类型")
    private String mimeType;

    /** 原文件名 */
    @Excel(name = "原文件名")
    private String originalFilename;

    /** seo名 */
    @Excel(name = "seo名")
    private String seoFilename;

    /** 别名 */
    @Excel(name = "别名")
    private String altAttribute;

    /** 标题 */
    @Excel(name = "标题")
    private String titleAttribute;

    /** 地址 */
    @Excel(name = "地址")
    private String virtualPath;

    /** 图片类型 */
    @Excel(name = "图片类型")
    private Integer pictureType;

    /** 新图片 */
    @Excel(name = "新图片")
    private Integer bNew;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createdBy;

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Integer getDisplayOrder() {
        return displayOrder;
    }

    public void setDisplayOrder(Integer displayOrder) {
        this.displayOrder = displayOrder;
    }

    private Long productId;
    private Integer displayOrder;


    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    public void setPictureId(Long pictureId)
    {
        this.pictureId = pictureId;
    }

    public Long getPictureId()
    {
        return pictureId;
    }
    public void setMimeType(String mimeType)
    {
        this.mimeType = mimeType;
    }

    public String getMimeType()
    {
        return mimeType;
    }
    public void setOriginalFilename(String originalFilename)
    {
        this.originalFilename = originalFilename;
    }

    public String getOriginalFilename()
    {
        return originalFilename;
    }
    public void setSeoFilename(String seoFilename)
    {
        this.seoFilename = seoFilename;
    }

    public String getSeoFilename()
    {
        return seoFilename;
    }
    public void setAltAttribute(String altAttribute)
    {
        this.altAttribute = altAttribute;
    }

    public String getAltAttribute()
    {
        return altAttribute;
    }
    public void setTitleAttribute(String titleAttribute)
    {
        this.titleAttribute = titleAttribute;
    }

    public String getTitleAttribute()
    {
        return titleAttribute;
    }
    public void setVirtualPath(String virtualPath)
    {
        this.virtualPath = virtualPath;
    }

    public String getVirtualPath()
    {
        return virtualPath;
    }
    public void setPictureType(Integer pictureType)
    {
        this.pictureType = pictureType;
    }

    public Integer getPictureType()
    {
        return pictureType;
    }
    public void setbNew(Integer bNew)
    {
        this.bNew = bNew;
    }

    public Integer getbNew()
    {
        return bNew;
    }
    public void setCreatedBy(String createdBy)
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy()
    {
        return createdBy;
    }
    public void setCreatedAt(Date createdAt)
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt()
    {
        return createdAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("pictureId", getPictureId())
                .append("mimeType", getMimeType())
                .append("originalFilename", getOriginalFilename())
                .append("seoFilename", getSeoFilename())
                .append("altAttribute", getAltAttribute())
                .append("titleAttribute", getTitleAttribute())
                .append("virtualPath", getVirtualPath())
                .append("pictureType", getPictureType())
                .append("bNew", getbNew())
                .append("createdBy", getCreatedBy())
                .append("createdAt", getCreatedAt())
                .toString();
    }

}
